reflect.Value.typ (method)

107 uses

	reflect (current package)
		deepequal.go#L42: 			if !v1.typ().Pointers() {
		makefunc.go#L103: 	fl |= flag(v.typ().Kind())
		makefunc.go#L104: 	rcvr := Value{v.typ(), v.ptr, fl}
		map_swiss.go#L148: 	tt := (*mapType)(unsafe.Pointer(v.typ()))
		map_swiss.go#L159: 	if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= abi.SwissMapMaxElemBytes {
		map_swiss.go#L161: 		e = mapaccess_faststr(v.typ(), v.pointer(), k)
		map_swiss.go#L170: 		e = mapaccess(v.typ(), v.pointer(), k)
		map_swiss.go#L212: 	tt := (*mapType)(unsafe.Pointer(v.typ()))
		map_swiss.go#L265: 	t := (*mapType)(unsafe.Pointer(iter.m.typ()))
		map_swiss.go#L290: 	t := (*mapType)(unsafe.Pointer(iter.m.typ()))
		map_swiss.go#L295: 	key = key.assignTo("reflect.MapIter.SetKey", v.typ(), target)
		map_swiss.go#L296: 	typedmemmove(v.typ(), v.ptr, key.ptr)
		map_swiss.go#L309: 	t := (*mapType)(unsafe.Pointer(iter.m.typ()))
		map_swiss.go#L334: 	t := (*mapType)(unsafe.Pointer(iter.m.typ()))
		map_swiss.go#L339: 	elem = elem.assignTo("reflect.MapIter.SetValue", v.typ(), target)
		map_swiss.go#L340: 	typedmemmove(v.typ(), v.ptr, elem.ptr)
		map_swiss.go#L351: 		t := (*mapType)(unsafe.Pointer(iter.m.typ()))
		map_swiss.go#L411: 	tt := (*mapType)(unsafe.Pointer(v.typ()))
		map_swiss.go#L413: 	if (tt.Key == stringType || key.kind() == String) && tt.Key == key.typ() && tt.Elem.Size() <= abi.SwissMapMaxElemBytes {
		map_swiss.go#L415: 		if elem.typ() == nil {
		map_swiss.go#L416: 			mapdelete_faststr(v.typ(), v.pointer(), k)
		map_swiss.go#L427: 		mapassign_faststr(v.typ(), v.pointer(), k, e)
		map_swiss.go#L438: 	if elem.typ() == nil {
		map_swiss.go#L439: 		mapdelete(v.typ(), v.pointer(), k)
		map_swiss.go#L450: 	mapassign(v.typ(), v.pointer(), k, e)
		value.go#L99: func (v Value) typ() *abi.Type {
		value.go#L112: 	if v.typ().Size() != goarch.PtrSize || !v.typ().Pointers() {
		value.go#L123: 	t := v.typ()
		value.go#L276: 	return Value{ptrTo(v.typ()), v.ptr, fl | flag(Pointer)}
		value.go#L309: 		if v.typ().Elem().Kind() != abi.Uint8 {
		value.go#L315: 		if v.typ().Elem().Kind() != abi.Uint8 {
		value.go#L322: 		n := int((*arrayType)(unsafe.Pointer(v.typ())).Len)
		value.go#L332: 	if v.typ().Elem().Kind() != abi.Int32 {
		value.go#L390: 	t := (*funcType)(unsafe.Pointer(v.typ()))
		value.go#L780: 			if v.typ() == nil {
		value.go#L877: 	if v.typ().Kind() == abi.Interface {
		value.go#L878: 		tt := (*interfaceType)(unsafe.Pointer(v.typ()))
		value.go#L894: 		rcvrtype = v.typ()
		value.go#L895: 		ms := v.typ().ExportedMethods()
		value.go#L900: 		if !nameOffFor(v.typ(), m.Name).IsExported() {
		value.go#L903: 		ifn := textOffFor(v.typ(), m.Ifn)
		value.go#L905: 		t = (*funcType)(unsafe.Pointer(typeOffFor(v.typ(), m.Mtyp)))
		value.go#L915: 	t := v.typ()
		value.go#L1165: 		return v.typ().Len()
		value.go#L1169: 		if v.typ().Elem().Kind() == abi.Array {
		value.go#L1170: 			return v.typ().Elem().Len()
		value.go#L1183: 	tt := (*chanType)(unsafe.Pointer(v.typ()))
		value.go#L1223: 		if v.typ().NumMethod() == 0 {
		value.go#L1238: 			if v.typ().IfaceIndir() {
		value.go#L1259: 		tt := (*ptrType)(unsafe.Pointer(v.typ()))
		value.go#L1274: 	tt := (*structType)(unsafe.Pointer(v.typ()))
		value.go#L1310: 			if v.Kind() == Pointer && v.typ().Elem().Kind() == abi.Struct {
		value.go#L1333: 			if v.Kind() == Ptr && v.typ().Elem().Kind() == abi.Struct {
		value.go#L1335: 					return Value{}, errors.New("reflect: indirection through nil pointer to embedded struct field " + nameFor(v.typ().Elem()))
		value.go#L1350: 	if f, ok := toRType(v.typ()).FieldByName(name); ok {
		value.go#L1361: 	if f, ok := toRType(v.typ()).FieldByNameFunc(match); ok {
		value.go#L1397: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L1420: 		tt := (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L1591: 		typ := (*abi.ArrayType)(unsafe.Pointer(v.typ()))
		value.go#L1619: 		typ := (*abi.StructType)(unsafe.Pointer(v.typ()))
		value.go#L1740: 		typedmemclr(v.typ(), v.ptr)
		value.go#L1767: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L1777: 		if v.typ().Elem().Kind() == abi.Array {
		value.go#L1778: 			return v.typ().Elem().Len()
		value.go#L1803: 	if v.typ() == nil {
		value.go#L1806: 	if v.flag&flagMethod != 0 || uint(i) >= uint(toRType(v.typ()).NumMethod()) {
		value.go#L1809: 	if v.typ().Kind() == abi.Interface && v.IsNil() {
		value.go#L1815: 	return Value{v.typ(), v.ptr, fl}
		value.go#L1824: 	if v.typ() == nil {
		value.go#L1830: 	return toRType(v.typ()).NumMethod()
		value.go#L1839: 	if v.typ() == nil {
		value.go#L1845: 	m, ok := toRType(v.typ()).MethodByName(name)
		value.go#L1856: 	tt := (*structType)(unsafe.Pointer(v.typ()))
		value.go#L1899: 		bitSize := v.typ().Size() * 8
		value.go#L1947: 		if !v.typ().Pointers() {
		value.go#L1998: 	tt := (*chanType)(unsafe.Pointer(v.typ()))
		value.go#L2031: 	tt := (*chanType)(unsafe.Pointer(v.typ()))
		value.go#L2057: 	x = x.assignTo("reflect.Set", v.typ(), target)
		value.go#L2060: 			typedmemclr(v.typ(), v.ptr)
		value.go#L2062: 			typedmemmove(v.typ(), v.ptr, x.ptr)
		value.go#L2083: 	if toRType(v.typ()).Elem().Kind() != Uint8 { // TODO add Elem method, fix mustBe(Slice) to return slice.
		value.go#L2095: 	if v.typ().Elem().Kind() != abi.Int32 {
		value.go#L2237: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L2243: 		typ = (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L2257: 		return Value{v.typ(), unsafe.Pointer(&t), v.flag}
		value.go#L2299: 		tt := (*arrayType)(unsafe.Pointer(v.typ()))
		value.go#L2305: 		typ = (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L2393: 		return v.typ()
		value.go#L2403: 	typ := v.typ()
		value.go#L2405: 		return v.typ()
		value.go#L2411: 	if v.typ().Kind() == abi.Interface {
		value.go#L2471: 	if v.typ() == nil {
		value.go#L2500: 		if !v.typ().Pointers() {
		value.go#L2602: 		t := v.typ().Elem()
		value.go#L2635: 		st := (*sliceType)(unsafe.Pointer(v.typ()))
		value.go#L2638: 		mapclear(v.typ(), v.pointer())
		value.go#L2690: 		stringCopy = sk == String && dst.typ().Elem().Kind() == abi.Uint8
		value.go#L2697: 	de := dst.typ().Elem()
		value.go#L2699: 		se := src.typ().Elem()
		value.go#L2834: 			tt := (*chanType)(unsafe.Pointer(ch.typ()))
		value.go#L2865: 			tt := (*chanType)(unsafe.Pointer(ch.typ()))
		value.go#L3045: 	case directlyAssignable(dst, v.typ()):
		value.go#L3052: 	case implements(dst, v.typ()):
		value.go#L3072: 	panic(context + ": value of type " + stringFor(v.typ()) + " is not assignable to type " + stringFor(dst))
		value.go#L3082: 	op := convertOp(t.common(), v.typ())
		value.go#L3084: 		panic("reflect.Value.Convert: value of type " + stringFor(v.typ()) + " cannot be converted to type " + t.String())